﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberManager.aspx.cs"
    Inherits="Card.Manager.MemberManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>会员管理</title>
    <link href="Css/Style.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="TB">
        <tr>
            <td class="TD_Input">
                <asp:TextBox ID="txtQuery" runat="server" MaxLength="100" Width="80%"></asp:TextBox>
                <asp:Button ID="btnQuery" runat="server" Text="查询" onclick="btnQuery_Click" />
            </td>
        </tr>
        <tr>
            <td>
                <span style="float: right">显示条数：
                    <asp:TextBox ID="txtRecords" runat="server" Text="50" MaxLength="3" CssClass="Input_Short"></asp:TextBox>
                </span>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Repeater ID="rptList" runat="server">
                    <HeaderTemplate>
                        <table class="TB">
                            <tr class="TB_Header">
                                <td>
                                    ID
                                </td>
                                <td>
                                    用户名
                                </td>
                                <td>
                                    电话
                                </td>
                                <td>
                                    QQ
                                </td>
                                <td>
                                    注册时间
                                </td>
                                <td>
                                    最后登录
                                </td>
                                <td>
                                    登录次数
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="TB_Item">
                            <td>
                                <%# Eval("ID")%>
                            </td>
                            <td>
                                <%# Eval("USER_NAME")%>
                            </td>
                            <td>
                                <%# Eval("MOBILE")%>
                            </td>
                            <td>
                                <%# Eval("QQ")%>
                            </td>
                            <td>
                                <%# DateTime.Parse(Eval("CREATE_DATE").ToString()).ToString("yyyy-MM-dd")%>
                            </td>
                            <td>
                                <%# DateTime.Parse(Eval("LAST_LOGIN_DATE").ToString()).ToString("yyyy-MM-dd HH:mm:dd")%>
                            </td>
                            <td>
                                <%# Eval("LOGIN_COUNT")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="TB_Alter">
                            <td>
                                <%# Eval("ID")%>
                            </td>
                            <td>
                                <%# Eval("USER_NAME")%>
                            </td>
                            <td>
                                <%# Eval("MOBILE")%>
                            </td>
                            <td>
                                <%# Eval("QQ")%>
                            </td>
                            <td>
                                <%# DateTime.Parse(Eval("CREATE_DATE").ToString()).ToString("yyyy-MM-dd")%>
                            </td>
                            <td>
                                <%# DateTime.Parse(Eval("LAST_LOGIN_DATE").ToString()).ToString("yyyy-MM-dd HH:mm:dd")%>
                            </td>
                            <td>
                                <%# Eval("LOGIN_COUNT")%>
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
